{% extends "home.html" %}
{% block header %}User Edit Form{% endblock %}
{% block title %} {% endblock %}
{% block navpanel %}
  <ul>
  <li id="bt_back" class="button"><a href="/"><span>Back</span></a></li>
  <li id="bt_profile" class="button"><span>My Profile</span></li>
  {% if is_user_admin %}
    <li id="bt_admin_users" class="button"><a href="/admin/user/list"><span>Users List</span></a></li>
    <li id="bt_admin_recipes" class="button"><a href="/admin/recipes/list"><span>Recipes List</span></a></li>
  {% endif%}
  </ul>
{% endblock %}
{% block main%}
  <header>
    <h2>{{ formName }}</h2>
  </header>
  <form action="{{ actionURL }}" method="post">
    <div>nikname: {{user.user.nickname}}</div>
    <input name="id" type="hidden" value="{{user.key}}" />
    <div class="field">name: <input name="name" type="text" value="{{ user.name }}" /></div>
    <div class="field">midname: <input name="midname" type="text" value="{{ user.midname }}" /></div>
    <div class="field">surname: <input name="surname" type="text" value="{{ user.surname }}" /></div>
    <div class="field">e-mail: <input name="email" type="text" value="{{ user.user.email }}" /></div>
    <div class="field">city: <input name="city" type="text" value="{{ user.city }}" /></div>
    <div class="field">gender: <input name="gender" type="text" value="{{ user.gender }}" /></div>
    <div id="bt_save" class="button"><input type="submit" name="Submit" value="Save"></div>
  </form>
  <footer>
  </footer>
{% endblock %}
